package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_feedback;

import cn.com.api.mapper.ApiT_feedbackMapper;

import cn.com.api.service.ApiT_feedbackService;

/**
 * 
 **/
@Service
public class ApiT_feedbackServiceImpl implements ApiT_feedbackService {
	@Autowired
	private ApiT_feedbackMapper apiT_feedbackMapper;

	// 根据id获取
	public ApiT_feedback findT_feedbackById(Integer id) {
		ApiT_feedback t_feedback = apiT_feedbackMapper.findT_feedbackById(id);
		return t_feedback;
	}

	// 查看数据集
	public List<ApiT_feedback> findT_feedbacks() {
		List<ApiT_feedback> t_feedbacks = apiT_feedbackMapper.findT_feedbacks();
		return t_feedbacks;
	}

	// 添加
	public void insertT_feedback(ApiT_feedback t_feedback) {
		apiT_feedbackMapper.insertT_feedback(t_feedback);
		return;
	}

	// 修改
	public void updateT_feedback(ApiT_feedback t_feedback) {
		apiT_feedbackMapper.updateT_feedback(t_feedback);
		return;
	}

	// 删除
	public int deleteT_feedback(Integer id) {
		int ret_I = apiT_feedbackMapper.deleteT_feedback(id);
		return ret_I;
	}

}
